#include<stdio.h>
#include<stdlib.h>

void inplace_swap(int *x,int *y){
	*y=*x^*y;
	*x=*x^*y;
	*y=*x^*y;
}

void reverse_array(int a[],int cnt){
	int  first,last;
	for(first = 0,last =cnt -1;first<last;first++,last--)
		inplace_swap(&a[first],&a[last]);
}

void main(){
	printf("length:");
	int *a;
	int cnt;
	scanf("%d",&cnt);
	a=(int *)malloc(sizeof(int)*cnt);
	int i;
	for(i=0;i<cnt;i++)
		scanf("%d",&a[i]);
	reverse_array(a,cnt);
	for(i=0;i<cnt;i++)
		printf("%d ",a[i]);
	printf("\n");
}
